<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title></title>
		<link rel="stylesheet" href="../css/loginto.css" />
	</head>
	<body>
		<div id="mainbody">
			<table>
				<tr>
					<td><span>用户名：</span></td>
					<td><input type="text" name="username" id="username"/></td>
					<td><span id="uname"></span></td>
				</tr>
				<tr>
					<td><span>密码：</span></td>
					<td><input type="password" name="password" id="password"/></td>
					<td><span id="pwd"></span></td>
				</tr>
				<tr>
					<td><span>验证码:</span></td>
					<td ><input type="text" name="checkName"id="checkName"/></td>
					<td><img src="" alt="验证码" /></td>
				</tr>
				<tr>
					<td><span>手机验证:</span></td>
					<td><input type="text" name="phoneCheck" id="phoneCheck"/></td>
					<td><input type="button" id="btn01" value="发送验证"/></td>	
				</tr>
				<tr>
					<td><input type="checkbox" id="box"/></td>
					<td><span>十天免登入</span></td>
					<td></td>
				</tr>
				<tr>
					<td colspan="3"><input type="button" value="登入" id="btn"/></td>
				</tr>
			</table>
		</div>
	</body>
	<script type="text/javascript" src="../js/jquery-1.4.4.js" ></script>
	<script>
		$(function(){
			$('input[name="username"]').blur(function(){
				var username=$('input[name="username"]').val();

				if(username==null){
					$('#uname').innerText='输入的账号不能为空';
				}
				var data1=0;
				var url='127.0.0.1:8080/java-servlet2/user.do';
				$.post('http://localhost:8080/java-servlet2/user.do',data1,function(data){
					console.log(data)
				});
			});
		})
	</script>
</html>